/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.CarOrderDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface CarOrderInterface {

    ArrayList<CarOrderDTO> readByAll();

    CarOrderDTO findById(int id);

    ArrayList<CarOrderDTO> findByCusId(int id);

    ArrayList<CarOrderDTO> findByDate(String date);

    ArrayList<CarOrderDTO> findByDTO(CarOrderDTO dto);

    int create(CarOrderDTO dto);

    boolean update(CarOrderDTO dto);

    boolean delete(int id);

    boolean delete(CarOrderDTO dto);
}
